package com.h3c.nem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.h3c.nem.dto.GenerateOfferDTO;
import com.h3c.nem.entity.TbOfferSendRecord;
import com.h3c.nem.vo.OfferSendRecordVO;

import java.io.File;
import java.util.List;

/**
 * offer发放记录(TbOfferSendRecord)表服务接口
 *
 * @author makejava
 * @since 2022-06-08 09:15:26
 */
public interface ITbOfferSendRecordService extends IService<TbOfferSendRecord> {

    /**
     * 获取offer发放记录
     * @param workerIds 预备员工
     * @return
     */
    PageInfo<OfferSendRecordVO> getOfferSendRecord(Integer currentPage, Integer pageSize, String workerIds,
                                                   String startDate, String endDate);

    /**
     * 保存offer发放记录
     * @param generateOfferDTO
     * @param content
     * @return 记录id
     */
    String saveOfferSendRecord(GenerateOfferDTO generateOfferDTO,String content);

    /**
     * 更新offer发放记录
     * @param workerId
     * @param fileList
     */
    void updateOfferSendRecord(String workerId, List<File> fileList);

}

